bitkeeper revision 1.1159.108.1 (416c448cJI8mt2eMnwbg061FjyhOpg)
authorcl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Tue, 12 Oct 2004 20:54:36 +0000 (20:54 +0000)
committercl349@freefall.cl.cam.ac.uk <cl349@freefall.cl.cam.ac.uk>
Tue, 12 Oct 2004 20:54:36 +0000 (20:54 +0000)
Put migrated domains on the cpu they were originally assigned.

tools/python/xen/xend/XendDomainInfo.py

index 7f789a48f7e945ceb7be672c5aef85f799b270fc..b8aba6bb99fdc24e3b2d4878b70ed159e8351ea8 100644 (file)
@@ -439,6 +439,9 @@ class XendDomainInfo:
             self.memory = int(sxp.child_value(config, 'memory'))
             if self.memory is None:
                 raise VmError('missing memory size')
+            cpu = sxp.child_value(config, 'cpu')
+            if self.dom and cpu is not None:
+                xc.domain_pincpu(self.dom, int(cpu))
 
             self.init_domain()
             self.configure_console()